package com.tencent.wxcloudrun.service;

import com.tencent.wxcloudrun.dao.MyRemindMapper;
import com.tencent.wxcloudrun.model.MyRemind;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class MyRemindService {

    @Resource
    private MyRemindMapper myRemindMapper;

    
    public int deleteByPrimaryKey(Integer id) {
        return myRemindMapper.deleteByPrimaryKey(id);
    }

    
    public int insert(MyRemind record) {
        return myRemindMapper.insert(record);
    }

    
    public int insertSelective(MyRemind record) {
        return myRemindMapper.insertSelective(record);
    }

    
    public MyRemind selectByPrimaryKey(Integer id) {
        return myRemindMapper.selectByPrimaryKey(id);
    }

    
    public int updateByPrimaryKeySelective(MyRemind record) {
        return myRemindMapper.updateByPrimaryKeySelective(record);
    }

    
    public int updateByPrimaryKey(MyRemind record) {
        return myRemindMapper.updateByPrimaryKey(record);
    }

    public List<MyRemind> findByUserId(String userId) {
        return myRemindMapper.findByUserId(userId);
    }
}
